﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace Ex08_Mp3
{
    public partial class Parameters : Form
    {
        public Parameters()
        {
            InitializeComponent();
        }

        private void label2_Click(object sender, EventArgs e)
        {

        }

        private void Form1_Load(object sender, EventArgs e)
        {
            //Set default values

            LstScreenResolution.SelectedIndex =
            LstRenderingMode.SelectedIndex =
            LstBmpType.SelectedIndex = 0;
            LstGfxMode.SelectedIndex = 4;
        }

        private void button1_Click(object sender, EventArgs e)
        {
            Main M = new Main();
            M.Str_ScreenResolution = LstScreenResolution.Text;
            M.Str_GfxMode = LstGfxMode.Text;
            M.Str_RenderingMode = LstRenderingMode.Text;
            M.Str_BmpType = LstBmpType.Text;

            this.Hide();
            M.WinMain();
            this.Show();
        }
    }
}